package cn.hxlc.tie.demo.modular.ljt.equipment.entity;

import cn.hxlc.tie.demo.core.enums.DeptEnum;
import cn.hxlc.tie.demo.core.enums.LevelEnum;
import cn.hxlc.tie.demo.core.enums.StatusEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ljt_bd_facility")
public class Facility implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "FID", type = IdType.AUTO)
    private Integer fid;
    @TableField("FNUMBER")
    private String fnumber; //设备编码
    @TableField("FNAME")
    private String fname;   //设备名称
    @TableField("FSIMPLENAME")
    private String fsimplename; //设备简称
    @TableField("FMODEL")
    private String fmodel;  //型号
    @TableField("FPOWER")
    private String fpower;  //功率
    @TableField("FFACTORYID")
    private Long ffactopryid; //自动编号   与车间deptId对应
    @TableField("FGROUPID")
    private Integer fgroupid;    //设备分类    模压设备 注塑设备
    @TableField("FSTATUS")
    private StatusEnum fstatus;    //设备状态   0启用 1禁用 2删除
    @TableField("FRUNSTATE")
    private DeptEnum frunstate;  //运行状态
    @TableField("FLEVEL")
    private LevelEnum flevel;     //技术水平
    @TableField("FISKEY")
    private Integer fiskey;     //关键设备
    @TableField("FMANUFACTURER")
    private String fmanufacturer;   //生产厂家
    @TableField("FUSEADDRESS")
    private String fuseaddress;     //使用地点
    @TableField("FOUTNUMBER")
    private String foutnumber;  //出厂编号
    @TableField("FOUTDATE")
    private Date foutdate;  //出厂日期
    @TableField("FBUYDATE")
    private Date fbuydate;  //购入日期
    @TableField("FCHECKINDATE")
    private Date fcheckindate;  //验收日期
    @TableField("FTONNAGE")
    private double ftonnage;    //吨位
    @TableField("FISMAIN")
    private Integer fismain;    //是否主设备  0否1是
    @TableField("FMAINEQUIPMENTID")
    private Integer fmainequipmentid;   //关联主设备ID 0否1是
    @TableField("FISCOLLECTDATA")
    private Integer fiscollectdata; //是否采集数据
    @TableField("FIMAGEURL")
    private Integer fimageurl;  //图片数据链接
    @TableField("FREMARK")
    private String fremark;     //备注
    @TableField("FCREATORID")
    private Long fcreatorid;
    @TableField("FCREATETIME")
    private Date fcreatetime;   //创建时间
    @TableField("FORDERNO")
    private Integer forderno;   //排序编号

}
